package com.ruoyi.follow.domain;

import java.time.LocalDate;

import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户关注对象 user_follow
 * 
 * @author chen
 * @date 2025-07-04
 */
@Schema(description = "用户关注对象")
public class UserFollow extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 自增ID */
    @Schema(title = "自增ID")
    @Excel(name = "自增ID")
    private Long id;

    /** 被关注用户ID */
    @Schema(title = "被关注用户ID")
    @Excel(name = "被关注用户ID")
    private Long followedUserId;

    /** 粉丝ID */
    @Schema(title = "粉丝ID")
    @Excel(name = "粉丝ID")
    private Long fansId;

    /** 关注时间 */
    @Schema(title = "关注时间")
    @Excel(name = "关注时间")
    private LocalDate followTime;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setFollowedUserId(Long followedUserId) 
    {
        this.followedUserId = followedUserId;
    }

    public Long getFollowedUserId() 
    {
        return followedUserId;
    }


    public void setFansId(Long fansId)
    {
        this.fansId = fansId;
    }

    public Long getFansId()
    {
        return fansId;
    }


    public void setFollowTime(LocalDate followTime) 
    {
        this.followTime = followTime;
    }

    public LocalDate getFollowTime() 
    {
        return followTime;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("followedUserId", getFollowedUserId())
            .append("followerUserId", getFansId())
            .append("followTime", getFollowTime())
            .toString();
    }
}
